module.exports = {
  title:'开发指南',
  dest:'docHouse',
  markdown: {
   // lineNumbers: true
  },
  head: [
    ['link', { rel: 'icon', href: '/logo.png' }]
  ],
  themeConfig: {
    logo:'/logo.png',
    nav: [
      { text: 'React Router 中文文档', link: '/' },
      { text: 'TypeScript 中文文档', link: '/typescript/' },
      { text: 'gitee', link: 'https://gitee.com/yunfeic/doc-house-study' },
    ],
    sidebar: {
      '/typescript/': [
        {
          title: "首页",
          path: "/typescript/",
        },
        {
          title: "1、文档简介",
          path: "/typescript/chapter1/",
        },
        {
          title: "2、快速上手",
          path: "/typescript/chapter2/index",
          collapsable: false,
          children:[
            {
              title: '上手使用',
              path: '/typescript/chapter2/quickUse',
            }, {
              title: 'JavaScript迁移',
              path: '/typescript/chapter2/javascriptmigration',
            }, {
              title: 'React & Webpack',
              path: '/typescript/chapter2/reactwebpack',
            },
          ]
        },
        {
          title: "3、TypeScript学习指南",
          path: "/typescript/chapter3/index",
          collapsable: false,
          children:[
            {
              title: '基础类型',
              path: '/typescript/chapter3/basicType',
            }, {
              title: '变量',
              path: '/typescript/chapter3/variableDeclaration',
            }, {
              title: '接口',
              path: '/typescript/chapter3/interface',
            }, {
              title: '类',
              path: '/typescript/chapter3/class',
            }, {
              title: '函数',
              path: '/typescript/chapter3/function',
            }, {
              title: '泛型',
              path: '/typescript/chapter3/generics',
            }, {
              title: '枚举',
              path: '/typescript/chapter3/enum',
            },
          ]
        },
        {
          title: "4、项目配置",
          path: "/typescript/chapter4/",
          collapsable: false,
          children:[
            {
              title: 'tsconfig.json',
              path: '/typescript/chapter4/tsconfig',
            },
          ],
        },
        {
          title: "5、文档版本",
          path: "/typescript/chapter5/",
          collapsable: false,
          children:[
            {
              title: 'TypeScript3.1',
              path: '/typescript/chapter5/version3.1',
            }, {
              title: 'TypeScript3.0',
              path: '/typescript/chapter5/version3.0',
            }, {
              title: 'TypeScript2.9',
              path: '/typescript/chapter5/version2.9',
            },
          ]
        },
      ],
      '/': [
        {
          title: "首页",
          path: "/",
        },
        {
          title: "1、简介",
          path: "/chapter1/",
        },
        {
          title: "2、基础",
          path: "/chapter2/index",
          collapsable: false,
          children:[
            {
              title: '路由配置',
              path: '/chapter2/RouteConfiguration',
            }, {
              title: '路由匹配原理',
              path: '/chapter2/RouteMatching',
            }, {
              title: 'History',
              path: '/chapter2/Histories',
            }, {
              title: '默认路由（IndexRoute）与 IndexLink',
              path: '/chapter2/IndexRoutes'
            },
          ]
        },
        {
          title: "3、高级用法",
          path: "/chapter3/index",
          collapsable: false,
          children:[
            {
              title: '动态路由',
              path: '/chapter3/DynamicRouting',
            }, {
              title: '跳转前确认',
              path: '/chapter3/ConfirmingNavigation',
            }, {
              title: '服务端渲染',
              path: '/chapter3/ServerRendering',
            }, {
              title: '组件生命周期',
              path: '/chapter3/ComponentLifecycle',
            }, {
              title: '组件外部跳转',
              path: '/chapter3/NavigatingOutsideOfComponents',
            },
          ]
        },
        {
          title: "4、升级指南",
          path: "/chapter4/",
          collapsable: false,
        },
        {
          title: "5、排错",
          path: "/chapter5/",
          collapsable: false,
        },
        {
          title:"6、API文档",
          path:"/chapter6/",
          collapsable: false,
        },
        {
          title:"7、词汇表",
          path:"/chapter7/",
        },
      ]
    },
  }
}
